import {
  Dialog
} from 'vant';

function alert(message, title) {
  return new Promise((resolve) => {
    Dialog.confirm({
      message: `${message},是否继续？`,
      title: title || '温馨提示',
    }).then(() => {
      resolve(true);
    }).catch(() => {
      resolve(false);
    });
  });
}


export {
  alert
}
